<%@ page language="java"  contentType="text/html; charset=UTF-8" %>

<html>
<body>
<h2>welcome shoppingmall</h2>
springmvc上传文件
<form name="form1" action="/seller/product/upload" method="post" enctype="multipart/form-data">
    <input type="file" name="upload_file" />
    <input type="submit" value="springmvc上传文件" />
</form>


<body>
<h2>springmvc上传商品图片文件</h2>
<form name="form1" action="/seller/product/product-image-upload" method="post" enctype="multipart/form-data">
    <h6>商品Id</h6>
    <input type="number" name="productId" />
    <h6>主图</h6>
    <input type="file" name="mainImage" />
    <h6>子图</h6>
    <input type="file" name="subImage" />
    <input type="file" name="subImage" />
    <input type="file" name="subImage" />
    <input type="file" name="subImage" />
    <input type="submit" value="springmvc上传文件" />
</form>


富文本图片上传文件
<form name="form2" action="/seller/product/rich_text_upload" method="post" enctype="multipart/form-data">
    <input type="file" name="upload_file" />
    <input type="submit" value="富文本图片上传文件" />
</form>

<form name="loginAdmin" action="/admin/login" method="post">
    <input type="text" name="username"/>
    <input type="text" name="password"/>
    <input type="submit" value="管理员登录"/>
</form>
<form name="loginAdmin" action="/seller/login" method="post">
    <input type="text" name="username"/>
    <input type="text" name="password"/>
    <input type="submit" value="商家登录"/>
</form>
<form name="registerAdmin" action="/seller/register" method="post">
    <table>
        <tr>
            <td>用户名</td>
            <td><input type="text" name="username"/></td>
        </tr>
        <tr>
            <td>密码</td>
            <td><input type="text" name="password"/></td>
        </tr>
        <tr>
            <td>真实姓名</td>
            <td><input type="text" name="realname"/></td>
        </tr>
        <tr>
            <td>Email</td>
            <td><input type="email" name="email"/></td>
        </tr>
        <tr>
            <td>电话</td>
            <td><input type="number" name="phone"/></td>
        </tr>
        <tr>
            <td>问题</td>
            <td><input type="text" name="question"/></td>
        </tr>
        <tr>
            <td>答案</td>
            <td><input type="text" name="answer"/></td>
        </tr>
        <tr>
            <td>商户类型</td>
            <td>
                <select name="role">
                    <option value="0">买家</option>
                    <option value="1">商家或卖家</option>
                    <option value="2">管理员</option>
                </select>
            </td>
        </tr>
        <tr>
            <td>创建时间</td>
            <td><input type="datetime-local" value="createTime"></input></td>
        </tr>
        <tr>
            <td>创建时间</td>
            <td><input type="datetime-local" value="updateTime"></input></td>
        </tr>
    </table>
    <input type="submit" value="注册"/>
</form>
</body>
</body>
</html>
